xen/x86: p2m-pod: Avoid redundant assignments in p2m_pod_demand_populate
authorJulien Grall <julien.grall@arm.com>
Mon, 2 Oct 2017 15:40:02 +0000 (16:40 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Mon, 2 Oct 2017 15:40:02 +0000 (16:40 +0100)
commit2c27049ca1bc1a54891af3bc376e0d572d41d2c2
tree6d7d6f21155d280d0e5dfb863a50be551adc7c1b
parent9271a2686ce7d66a78e554fec1bd402ee49db202
xen/x86: p2m-pod: Avoid redundant assignments in p2m_pod_demand_populate

gfn_aligned is assigned 3 times with the exact same formula. All the
variables used are not modified, so consolidate in a single assignment
at the beginning of the function.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/mm/p2m-pod.c